import {AbstractEnoad} from './EnoadListener';

export class EnoadNotifaction extends AbstractEnoad {
  //懒汉式单例又称惰性单例，前端不考虑，如果是后端可能会考虑高并发的情况下出现多个实例
  private static _instance: EnoadNotifaction;

  private constructor() {
    super();
  }

  //获得实例对象
  public static getInstance(): EnoadNotifaction {
    if (!this._instance) {
      this._instance = new EnoadNotifaction();
    }
    return this._instance;
  }
}
